package itdfq.dfq.Behavior_Patters.zhongjiezhe;

/**
 * @Author GocChin
 * @Date 2021/5/17 19:14
 * @Blog: itdfq.com
 * @QQ: 909256107
 * @Descript:
 */
public class VIPStudent extends Student{

    public VIPStudent(Integer role, String name) {
        super(role, name);
    }

    @Override
    public void sendText(String to, String message) {
        System.out.println("VIP发送消息：");
        chatroom.sendText(name,to,message);
    }

    @Override
    public void sendImage(String to, String message) {
        System.out.println("VIP发送图片：");
        chatroom.sendImg(name,to,message,role);
    }
}
